# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: handler.py
# Time: 19:21

from common.element.elements import PocoElement
from common.util.api_util import get_yaml_data


class TransitionHandler(PocoElement):
    def __init__(self, poco, log):
        super().__init__(poco, log)
        self.page = get_yaml_data("transition.yaml")


    def get_lijitiyan(self):
        return self.poco_element_exists(self.page.get("lijitiyan"))


    def get_querenyinsi(self):
        return self.poco_element_exists(self.page.get("querenyinsi"))


    def get_guanbitanchaung(self):
        return self.poco_element_exists(self.page.get("guanbitanchaung"))


    def get_tongyiquanxian(self):
        return self.poco_element_exists(self.page.get("tongyiquanxian"))

    def get_gengxintanchaung(self):
        return self.poco_element_exists(self.page.get("gengxintanchaung"))

